package com.es.pay.shopGrade;

import javax.servlet.http.HttpServletRequest;

import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class DeleteShopGradeDoAction extends ActionSupport implements ServletRequestAware{

	private static final long serialVersionUID = 1L;
	HttpServletRequest request;
	 
	public String execute()throws Exception
	{
	   String sgid = request.getParameter("sgid");
	   ShopGradeBiz biz = new ShopGradeBiz();
	   boolean bool = biz.deleteShopGradeDo(sgid);
	   if(bool)
		   request.setAttribute("message", "删除店面评分操作成功！");
	   else
		   request.setAttribute("message", "删除店面评分操作产生错误！");
	   return "success";
	}

	public void setServletRequest(HttpServletRequest request) {
	     this.request = request;
	}
	
}
